package cc.mxtt.mvc.service;

import java.util.List;

import cc.mxtt.mvc.model.Device;
import cc.mxtt.mvc.model.Role;

import com.jfinal.plugin.activerecord.Page;

public interface DevService {
	
	public Device findById(String id);
	public List<Device> findByIds(String userids);
	public boolean create(Device user);
	public boolean update(Device user);
	public boolean delete(String idValues);
	public boolean lock(String userids);
	public boolean unLock(String userids);
	public Page<Device> getDataGrid(int pageNumber, int pageSize, String username);
	//获取登陆用户的角色列表（逗号分隔），一个用户可以拥有多个角色
	public Page<Device> getDataGrid(int pageNumber, int pageSize, String username , Long id);

}
